/**
 * bannerapi
 */
import instance from "@/utils/request";

//banner列表分页查询
export function GetBanneristApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/banner/list/page",
        data
    })
}

//banner添加
export function AddBanneristApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/banner/add",
        data
    })
}

//删除分页数据
export function DelBanneristApi(bannerId) {
    return instance.request({
        method: "get",
        url: `/banner/del/${bannerId}`,
    })
}

//修改banner展示状态
export function changeCardListApi(bannerId, hidden) {
    return instance.request({
        method: "get",
        url: `/banner/status/${bannerId}/${hidden}`,
    })
}

//banner列表-编辑回显
export function EchoCardListApi(bannerId) {
    return instance.request({
        method: "get",
        url: `/banner/get/${bannerId}`,
    })
}

//banner列表-编辑
export function EditCardListApi(data) {
    return instance.request({
        method: "post",
        url: `/banner/edit`,
        data
    })
}

//添加内部链接-活动列表查询
export function GetActivityListApi(data) {
    return instance.request({
        method: "post",
        url: `/activity/list/page`,
        data
    })
}

//添加内部链接-文章列表查询
export function GetArticleListApi(data) {
    return instance.request({
        method: "post",
        url: `/article/list/page`,
        data
    })
}